<?php
/*
 * 基于淘宝开放平台的起始类
 */
 class TController extends Controller {
 	
	/*
	 * 用户登录信息
	 * */
	public $user;

	public $layout = "//layouts/column1";
	
	function init() {		
		parent::init();
		$this->user = (object) array_merge(
			Yii::t("{$this->module->id}Module.tokey","tokey"), 
			Yii::t("{$this->module->id}Module.tokey","user"), 
			Yii::t("{$this->module->id}Module.tokey","shop"));

		if(!$this->user) throw new CHttpException(403,Yii::t("{$this->module->id}Module.tokey",'no access'));
	}

 }
